package com.xjc.model;

import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.ConfigurableEnvironment;

import java.util.Map;

@SpringBootApplication
public class ModelApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(ModelApplication.class, args);
        ConfigurableEnvironment environment = context.getEnvironment();
        Map<String, Object> map = environment.getSystemEnvironment();
        ConfigurableListableBeanFactory beanFactory = context.getBeanFactory();
        BeanDefinition definition = context.getBeanFactory().getBeanDefinition("com.xjc.model.controller.HelloController");
    }

}
